package com.cao.project.domain;

import java.io.Serializable;
import java.util.Date;

import com.cao.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.cao.common.annotation.Excel;

/**
 * 任务评论：存储任务的评论信息对象 pro_task_comment
 *
 * @author cao
 * @date 2025-03-03
 */
@Data
@TableName(value = "pro_task_comment")
public class TaskComment extends BaseEntity implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 评论ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 任务ID
     */
    @Excel(name = "任务ID")
    @TableField(value = "task_id")
    private Long taskId;

    /**
     * 任务名称
     */
    @Excel(name = "任务名称")
    @TableField(value = "task_name")
    private String taskName;

    /**
     * 评论者ID
     */
    @Excel(name = "评论者ID")
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 评论者姓名
     */
    @Excel(name = "评论者姓名")
    @TableField(value = "user_name")
    private String userName;

    /**
     * 评论内容
     */
    @Excel(name = "评论内容")
    @TableField(value = "comment")
    private String comment;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "created_at")
    private Date createdAt;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "modified_at")
    private Date modifiedAt;


}
